[IA64] Make maximum number of supported physical CPUs a compile-time option
authorAlex Williamson <alex.williamson@hp.com>
Thu, 17 Jan 2008 19:17:14 +0000 (12:17 -0700)
committerAlex Williamson <alex.williamson@hp.com>
Thu, 17 Jan 2008 19:17:14 +0000 (12:17 -0700)
Make maximum number of supported physical CPUs a compile-time
option via the 'max_phys_cpus=<nr>' compilation parameter.

Based on xen-unstable.hg cset 9464:d7cbcf5d7cd6

Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
xen/include/asm-ia64/config.h

index 6872d08dbeab3ebaff950d700f09fa8083878dd7..40a09377edc05d5b7cb49591a35dd2a64746e0d3 100644 (file)
 #ifdef CONFIG_XEN_SMP
 #define CONFIG_SMP 1
 #define CONFIG_HOTPLUG_CPU 1
+#ifdef MAX_PHYS_CPUS
+#define NR_CPUS MAX_PHYS_CPUS
+#else
 #define NR_CPUS 64
+#endif
 #define CONFIG_NUMA
 #define CONFIG_ACPI_NUMA
 #define NODES_SHIFT 8